/*
 * $Id: ActRequestListUser.java,v 1.13 2012/01/18 15:21:46 navdeep_mahajan Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

/**
 * ActRequestListUser entity.
 * 
 * @author MyEclipse Persistence Tools
 */
public class ActRequestListUser extends AbstractRequestListUser implements
		java.io.Serializable {

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -1388275778429156985L;

	public static final String TABLE_NAME = "com.ge.healthcare.autosc.common.database.pojo.ActRequestListUser";

	public static final String COL_REQUEST_USER_ID = "requestUserId";
	public static final String COL_REQUEST_LIST_ID = "requestListId";
	public static final String COL_ADDRESS_TYPE = "addressType";
	public static final Object COL_CODE_ID = "codeId";
	
	private String codeName = null;
	public static final String SENT_FROM_ADDRESS_TYPE = "SENT_FROM";
	public static final String REPLY_TO_ADDRESS_TYPE = "REPLY_TO";

	

	// Constructors

	/** default constructor */
	public ActRequestListUser() {
	}

	public boolean equals(ActRequestListUser user) {
		if (this.getRequestUserId().equals(user.getRequestUserId())
				&& this.getRequestListId().equals(user.getRequestListId())
				&& this.getCodeId().equals(user.getCodeId())
				&& this.getSso().equals(user.getSso())
				&& this.getEmailAddress().equals(user.getEmailAddress())
				&& this.getAddressType().equals(user.getAddressType())
				&& this.getProgram().equals(user.getProgram())) {
			return true;
		} else {
			return false;
		}
	}

	public String toString() {
		StringBuffer definition = new StringBuffer();
		definition.append("{Request User Id=").append(this.getRequestUserId())
				.append("},");
		definition.append("{Request List Id=").append(this.getRequestListId())
				.append("},");
		definition.append("{Email Address=").append(this.getEmailAddress())
				.append("},");
		definition.append("{Address Type=").append(this.getAddressType())
				.append("},");
		definition.append("{SSO=").append(this.getSso()).append("},");
		definition.append("{Program=").append(this.getProgram()).append("},");
		definition.append("{Code Name=").append(this.getCodeName()).append("},");
		definition.append("{Code Id=").append(this.getCodeId()).append("}");
		return definition.toString();
	}

	
	/**
	 * @return the codeName
	 */
	public String getCodeName() {
		return codeName;
	}

	/**
	 * @param codeName
	 *            the codeName to set
	 */
	public void setCodeName(String codeName) {
		this.codeName = codeName;
	}
}
